package com.ybkj.o2o.mc.manager.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.ybkj.o2o.mc.entity.PassengerManage;
import com.ybkj.o2o.mc.manager.PassengerManageManager;
import com.ybkj.o2o.mc.service.PassengerManagerService;


/**
 * 
 * @author Yuan Tianyang.---2017/7/18
 *
 */
@Service
public class DefaultPassengerManageManager implements PassengerManageManager{

	@Autowired
	private PassengerManagerService passengerManagerService;
	
	@Override
	@Transactional(rollbackFor = Exception.class)
	public PassengerManage insert(PassengerManage passengerManage) {

		passengerManagerService.insert(passengerManage);
		return passengerManage;
	}

	@Override
	public PassengerManage findPassengerManagerByParam(
			PassengerManage passengerManage) {

		return passengerManagerService.findPassengerManagerByParam(passengerManage);
	}

	@Override
	@Transactional(rollbackFor = Exception.class)
	public int update(PassengerManage passengerManage) {
		return passengerManagerService.update(passengerManage);
	}

	@Override
	public int deleteByParam(PassengerManage passengerManage) {
		return passengerManagerService.deleteByParam(passengerManage);
	}

}
